Write the AI section: tools, checks, an example and what we learned (#106) #146
+51
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The «Use of AI» section in the README was a short list. All three peer reviewers said our AI use was not documented. The section now lists the tools we used (Claude Code, Cline with models from gpt.ntnu.no, and ChatGPT) and what we used each one for. It also covers what context the tools get and how we check their work: npm run check, tests that we make fail on purpose, looking at the page at phone width, and review by another group member.
It has one worked example from #117, where Claude Code measured every click target and made the first fix. We then changed how the «Nylig dømt» card works on phones and checked the result with a new e2e test. It ends with what we learned and how we mark AI use from now on: one «AI: …» line at the end of each pull request. Only 18 commits on main have a Co-Authored-By line, so the commits alone do not show it.
docs/workflow.md now asks for that line in every pull request.
Every group member should read the section before this is merged, and check that their own tools are in the table. Merge #117 first, because the example points to its e2e test.
AI: Claude Code wrote the draft from the git history, the issues and the peer review comments. We chose the tools, the marking and the example. We also read over the text and edited it quite a lot before the PR.
Closes #106